﻿using System;
using System.Collections.Generic;

using System.Text;

namespace MSL.Utility.Net
{
    /// <summary>    
    /// 下载数据参数    
    /// </summary>    
    public class DownloadArgs : EventArgs
    {
        /// <summary>    
        /// 已接收的字节数    
        /// </summary>    
        public Int32 BytesReceived { get; set; }
        /// <summary>    
        /// 总字节数    
        /// </summary>    
        public Int32 TotalBytes { get; set; }
        /// <summary>    
        /// 当前缓冲区接收的数据    
        /// </summary>    
        public byte[] ReceivedData { get; set; }
    }

    /// <summary>    
    /// 上传数据参数    
    /// </summary>    
    public class UploadArgs : EventArgs
    {
        /// <summary>    
        /// 已发送的字节数    
        /// </summary>    
        public Int32 BytesSent { get; set; }
        /// <summary>    
        /// 总字节数    
        /// </summary>    
        public Int32 TotalBytes { get; set; }
    }
}
